package com.whnk.pm.interceptor;

public class DataThreadLocal {

    private static ThreadLocal<Boolean> dataPrivileges = new ThreadLocal<>();

    public static void setDataPrivileges(boolean b) {
        dataPrivileges.set(b);
    }

    public static boolean getDataPrivileges() {
        System.out.println(dataPrivileges.get());
        return dataPrivileges.get() == null ? false : dataPrivileges.get();
    }
}
